home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / DJLSR111.ZIP / libsrc / c / dos / getdate.c < prev    next >
C/C++ Source or Header  |  1993-10-04  |  230b  |  12 lines

  1. #include <dos.h>
  2.  
  3. void getdate( struct date *dateblk)
  4. {
  5.   union REGS regs;
  6.   regs.h.ah = 0x2a;
  7.   intdos( ®s, ®s);
  8.   dateblk-> da_year = regs.x.cx;
  9.   dateblk-> da_mon = regs.h.dh;
  10.   dateblk-> da_day = regs.h.dl;
  11. }
  12.